package com.it.system.searchservice.feign;


import com.it.system.educommonapi.entity.Course;
import com.it.system.searchservice.entity.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("edu-course-service")
public interface CourseFeignClient {

    @GetMapping("/courses")
    ResponseResult<List<Course>> getAllCourse();

}
